package com.wuhuahe.learning.lagou.service.code.service;

import com.wuhuahe.learning.lagou.service.code.pojo.Code;
import com.wuhuahe.learning.lagou.service.common.exception.CodeException;

public interface CodeService {

    public Code createCode(String email) throws CodeException;

    public int validate(String email, String code) throws CodeException;
}
